/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2018
 */

package com.hzyb.oldpack.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */


@Entity
@Table(name = "shop_order")
public class ShopOrder {
	private static final long serialVersionUID = 5454155825314635342L;



	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	@Length(max=50)
	private java.lang.String orderSid;
	@Length(max=50)
	private java.lang.String cartSid;

	private java.util.Date enterDate;
	@Length(max=10)
	private java.lang.String freight;
	@Length(max=50)
	private java.lang.String enterUserid;
	@Length(max=50)
	private java.lang.String number;
	@Length(max=50)
	private java.lang.String waybillNumber;
	@Length(max=50)
	private java.lang.String prepayId;
	@Length(max=50)
	private java.lang.String transactionId;
	//columns END


	public ShopOrder(){
	}

	public ShopOrder(
			java.lang.String orderSid
			){
		this.orderSid = orderSid;
	}



	public void setOrderSid(java.lang.String value) {
		this.orderSid = value;
	}

	@Id 
	@Column(name = "order_sid", unique = true, nullable = false, insertable = true, updatable = true, length = 50)
	public java.lang.String getOrderSid() {
		return this.orderSid;
	}

	@Column(name = "cart_sid", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getCartSid() {
		return this.cartSid;
	}

	public void setCartSid(java.lang.String value) {
		this.cartSid = value;
	}


	@Column(name = "enter_date", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public java.util.Date getEnterDate() {
		return this.enterDate;
	}

	public void setEnterDate(java.util.Date value) {
		this.enterDate = value;
	}

	@Column(name = "freight", unique = false, nullable = true, insertable = true, updatable = true, length = 10)
	public java.lang.String getFreight() {
		return this.freight;
	}

	public void setFreight(java.lang.String value) {
		this.freight = value;
	}

	@Column(name = "enter_userid", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getEnterUserid() {
		return this.enterUserid;
	}

	public void setEnterUserid(java.lang.String value) {
		this.enterUserid = value;
	}

	@Column(name = "number", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getNumber() {
		return this.number;
	}

	public void setNumber(java.lang.String value) {
		this.number = value;
	}

	@Column(name = "waybill_number", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getWaybillNumber() {
		return this.waybillNumber;
	}

	public void setWaybillNumber(java.lang.String value) {
		this.waybillNumber = value;
	}

	@Column(name = "prepay_id", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getPrepayId() {
		return this.prepayId;
	}

	public void setPrepayId(java.lang.String value) {
		this.prepayId = value;
	}

	@Column(name = "transaction_id", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getTransactionId() {
		return this.transactionId;
	}

	public void setTransactionId(java.lang.String value) {
		this.transactionId = value;
	}
}

